package com.iursp.service.log;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.stereotype.Component;

import com.iursp.domain.model.logger.ApiLogger;
import com.iursp.domain.model.logger.ServiceLogger;

@Component("loggerService")
public class LoggerServiceImpl implements LoggerService{

    @Autowired
    MongoOperations mongoTemplate;
    
	public void saveApiLogger(ApiLogger apiLogger) {
		 mongoTemplate.save(apiLogger);
	}
	
	public void saveServiceLogger(ServiceLogger serviceLogger) {
		// TODO Auto-generated method stub
		 mongoTemplate.save(serviceLogger);
	}
	
	@Override
	public ApiLogger findUserByName(String name) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void removeUser(String name) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateUser(String name, String key, String value) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<ApiLogger> listUser() {
		// TODO Auto-generated method stub
		return null;
	}




}
